<?php
namespace app\api\controller\v1;

use app\api\model\Hotel as HotelModel;
use app\api\service\TokenService;
use app\api\validate\HotelValidate ;
use app\lib\exception\BaseException;
use app\lib\exception\SuccessMessage;

//用户地址类
class Hotel extends Base
{
    //TP5的前置方法
    protected $beforeActionList = [
        //'checkScope' => ['only' => 'createOrUpdateAddress']
        'checkScope'
    ];

    public function upload_hotel(){

    }

    public function visa_info(){
        $uid = TokenService::getCurrentUid();//接收token，获取uid
        return HotelModel::GetInfo($uid);
    }

}
